package filecheck;

import java.io.*;

public class FileInputStreamIO {

    public static void main(String[] args) {
        BufferedReader fis;
        try {
            fis = new BufferedReader(
                    new InputStreamReader(new FileInputStream(new File("D://data_tj_DaYueCheng_uk_lp_20150804T144813_3895.wifi"))));
            String line;
            while (fis.readLine() != null) {
                line = fis.readLine();

                String[] value = line.split(" ");
                int count = 0;
                for (String result : value) {
                    if (result.contains("-")) {
                        continue;
                    }
                    if (result.contains(":")) {
                        count++;
                    }
                }
                System.out.println(count);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
